package com.ruoyi.setlanguages.io;
import com.google.api.client.util.DateTime;
import lombok.Data;

@Data
public class ChannelInfo {
    private String id;
    private String title;
    private String description;
    private Long subscriberCount;
    private Long videoCount;
    private Long viewCount;
    private String channelUrl;
    private DateTime publishedAt;


    @Override
    public String toString() {
        return String.format("频道: %s\nID: %s\n订阅数: %d\n视频数: %d\n链接: %s\n创建时间: %s\n描述: %s\n",
                title, id, subscriberCount != null ? subscriberCount : 0,
                videoCount != null ? videoCount : 0, channelUrl, publishedAt,
                description != null ? description : "无描述");
    }
}

